闘本 1.3 URLify
提出
code: python
s = "Mr Jhon Smith "
l = 13
def urlify(s, l):
target = ""
for i in range(l):
target += s
i
return target.replace(" ", "%20")
実行結果
code: zsh
Mr%20Jhon%20Smith